All Questions
11 questions
0votes
1answer
85views
Parsing shortcodes out of a string
I wrote this shortcode parsing and it runs in \$O(N^2)\$. Is there a way to better optimize this? ...
18votes
5answers
4kviews
Speeding up thousands of string parses
I have a mapping application which takes string arguments in the form of string arrays. I parse these and then perform an action on the map. One of these is ...
4votes
1answer
194views
PHP class for reading DTD
A very long time ago, I started development of a code generator for HTML. And some time ago I rewrote it and published it under LGPL v3.0 on Sourceforge.net. It is very universal because one of its ...
6votes
0answers
873views
Parsing Lua 5.2 strings with patterns
I wrote some code to parse Lua 5.2 strings in Lua 5.1, using patterns. It works perfectly as far as I tested. ...
6votes
2answers
519views
The Bucketizer Script
This code is written in a SSIS Script Component that basically accomplishes what I previously had as a T-SQL script, that was reviewed here. I need to split a 80 character string that contains 20 ...
4votes
1answer
227views
Deserialize an email header into key-value pairs
I've created a function that will deserialize an email header into a list of key-value pairs. I've run numerous tests using MS Office Outlook 2010 and MS Office 14.0 Object Library, all of which were ...
6votes
2answers
204views
Performance tuning on a text file to object conversion
I'm using an API which returns text in the following format: ...
12votes
1answer
3kviews
A regular expression parsing library in C
I've created a regular expression (regex) parsing library in C, and would like some feedback on it. Speed is really important to me, but any and all suggestions are acceptable. ...
10votes
5answers
20kviews
Reading from text file with RegexMatch
Below is the method that I have written for reading from a text file. While reading, I need to match a line string to a given regex, and if it matches, I need to add the line string to a collection. ...
5votes
1answer
800views
Regex parser - request for review and optimization
The whole question is Simplified regular expression engine. I have solved the question, and in turn felt the need to get it reviewed. Any suggestions for clean up and optimization would help. Also ...
6votes
2answers
6kviews
SVG path parsing
I have a module in Python for dealing with SVG paths. One of the problems with this is that the SVG spec is obsessed with saving characters to a pointless extent. As such, this path is valid: ...